import { lazy } from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
// import { EmptyIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 首页模块
const homeRouter: Array<RouteObject> = [
	{
		// element: <EmptyIndex />,
		path: "super",
		element: lazyLoad(lazy(() => import("@/views/supermajom/index"))),
		children: [
			{
				path: "authlist",
				element: lazyLoad(lazy(() => import("@/views/supermajom/authlist"))),
				meta: {
					title: "麻将教学-权限列表",
				},
			},
			{
				path: "authdeal",
				element: lazyLoad(lazy(() => import("@/views/supermajom/authdeal"))),
				meta: {
					title: "麻将教学-权限处理",
				},
			},
		],
	},
];

export default homeRouter;
